<script>
import testEe from './test-ee.vue'
import { ref, onMounted, h, getCurrentInstance } from 'vue';

export default {
  name: 'test',
  setup() {
    console.log("??", testEe)
    const divRef = ref();
    const ref2 = ref();
    const ref3 = ref();

    onMounted(() => {
      console.log('mounted', divRef, ref2, ref3, getCurrentInstance())
    });

    return () => h(testEe, {
      ref: divRef,
      title: 'test title'
    }, [
      h(testEe, {
        ref: ref2,
        title: 'ref2'
      }),
      h(testEe, {
        ref: ref3,
        title: 'ref3'
      }),
    ])
  },
};
</script>